<?php

declare (strict_types = 1);

namespace app\middleware;

class Check2 {
    public function handle($request, \Closure $next){
        echo '控制器中间件';
        $request->hello = 'ThinkPHP';
        return $next($request);

        //$response = $next($request);
        //halt($request);
        //return $response;
    }
}